<?php 

require_once("../shared/connect.php");

$delete = mysql_query("TRUNCATE TABLE location") 
		or die(mysql_error());

$delete = mysql_query("TRUNCATE TABLE `lock`") 
		or die(mysql_error());

// hack
//copy('matrix_cache_blank', 'matrix_cache_1');
//copy('matrix_cache_blank', 'matrix_cache_2');
$files = glob('matrix_cache_[0-9]*');
array_map('unlink', $files);

$files = glob('route_cache_[0-9]*');
array_map('unlink', $files);

touch('last_updated');

?>